{% extends "calendar.html" %}

{% block extrahead %}{% endblock %}
{% block jquery_ui_lib %}{% endblock %}
{% block jq_document_ready %}{% endblock %}


{% block on_check %}
function filter(item) {
	document.location.href = 'filter/'+item.id+'/'+item.checked;
}
{% endblock %}

{% block edition %}
	{% if can_edit %}
	<li>
		<h2>Actions</h2>
		<ul>
			<li><a href=edit/>Réserver</a></li>
			
			{% if not user.is_authenticated %}
			<li class="authentication">
				<li><a href=login/?next=..>se connecter</a></li>
			</li>
			{% endif %}
			
		</ul>
	
	</li>
	{% endif %}
{% endblock %}
